package com.joysuch.wwyt.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.joysuch.wwyt.common.entity.CommonImportTemplate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.joysuch.wwyt.core.common.ajax.ResultBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author heqifeng
 * @since 2022-01-07
 */
public interface CommonImportTemplateService extends IService<CommonImportTemplate> {

    void downLoadTemplate(HttpServletRequest request, HttpServletResponse response,Long templateId);

    void downLoadTemplateBatch(HttpServletRequest request, HttpServletResponse response, List<Long> templateIds) throws IOException;

    IPage<CommonImportTemplate> pageTemplate(Integer pageNo, Integer size,String templateName);

    void checkDownloadTemplate(List<Long> ids);
}
